package com.dongdong.em;

public enum ResultEnum {

    SEND_BIRTHDAY_SUCCESS("27","已发送生日祝福!"),
    NOT_BIRTHDAY("26","生日还没到!"),
    SECKILL_ORDER_SUBMIT_SUCCESS("25","提交订单成功"),
    STOCKCOUNT_NOT_NULL("24","库存为空"),
    SECKILL_TIME_END("23","秒杀时间结束"),
    NOT_SECKILLGOODS("23","没有秒杀商品"),
    SECKILL_QUERY_ERROR("22","客官,您点击的次数太多了"),
    EMAIL_IS_NULL("21","Email为空,无法发送"),
    REFUND_SUCCESS("20","退款成功"),
    REFUND_REPETITION_ERROR("19","退款重复"),
    REFUND_ERROR("18","退款失败"),
    ADDCART_SUCCESS("17","加入购物车成功"),
    SELLER_THREE("16","此账户已关闭"),
    SELLER_TWO("15","商家审核未通过"),
    SELLER_ZERO("14","商家待审核"),
    NO_WAREHOUSE("13","没有这个仓库"),
    TOKEN_LOSE_EFFICACY("12","Token失效"),
    OK("11","操作成功"),
    ERROR("10","操作失败"),
    USER_NULL("9","用户未登录"),
    REGULAR_STRING_REPETITION("8","规则字符串重复"),
    RULE_LENGTH_DOES_NOT_MEET_REQUIREMENTS("7","规则长度不符合要求"),
    USERNAME_PASSWORD_NULL_ERROR_CODE("1","用户名或者密码不能为空"),
    LOGIN_SUCCESS_DATA("2","登录成功"),
    USERNAME_PASSWORD_ERROR_DATA("3","用户名或者密码错误"),
    REGISTER_SUCCESS_DATA("4","注册成功"),
    REGISTER_ERROR_DATA("5","注册失败"),
    REGISTER_USER_EXIST("6","用户已经存在");
    private String code;
    private String message;

    @Override
    public String toString() {
        return "ResultEnum{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                '}';
    }

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
